<?php
// 格式化打印变量 ，测试用
function P($vars, $label = '', $return = false) {
	if (ini_get('html_errors')) {
		$content = "<pre>\n";
		if ($label != '') {
			$content .= "<strong>{$label} :</strong>\n";
		}
		$content .= htmlspecialchars(print_r($vars, true));
		$content .= "\n</pre>\n";
	} else {
		$content = $label . " :\n" . print_r($vars, true);
	}
	if ($return) { return $content; }
	echo $content;
	return null;
}
/**
 * 读取配置文件
*/
function C($name,$file='conf'){
    $temp = \core\lib\conf::get($name,$file);
    return $temp;
}